package com.web.index.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.web.index.ao.IndexAo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
@RequestMapping("/index")
public class IndexAction
{
	@Autowired
	private IndexAo indexAo;
	
	@RequestMapping("/search")
	public ModelAndView search(String keyword,int type,HttpServletRequest request)
	{
		
		return new ModelAndView ("/kongjian/list_search","returnPage",indexAo.search (keyword.trim () ,type ,request));
	}
}
